package com.ftg.learn.chapter17.expand;

/**
 * @author KangJx
 * @date 2021/8/16
 */
public class AgeIfruleImple<T> implements IfRule<T> {

    @Override
    public boolean test(T t1) {
        return ((Student)t1).getAge() > 20;
    }
}
